<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <head><title></title></head>
    <body>
        <ui:composition>
            <div id="left_bar_top"></div>
            <div id="left_bar_content">
                <ul>
                    <li>
                        <h:link outcome="/index.xhtml" value="#{bundle.Home}"/>
                    </li>
                    <li>
                        <h:link outcome="#{restaurantRatingsController.prepareList()}" value="#{bundle.RestaurantRatings}"/>
                    </li>
                    <h:panelGroup rendered="#{userRights.client}">
                        <li>
                            <h:link outcome="#{personsController.prepareEdit()}" value="#{bundle.EditUser}"/>
                        </li>
                        <li>
                            <h:link outcome="#{ordersController.prepareList()}" value="#{bundle.Orders}"/>
                        </li>
                        <li>
                             <h:link outcome="#{productTypesController.prepareList()}" value="#{bundle.ProductType}"/>
                        </li>
                        <li>
                            <h:link outcome="#{reservationsController.prepareList()}" value="#{bundle.Reservations}"/>
                        </li>
                        <li>
                            <h:link outcome="#{tablesController.prepareList()}" value="#{bundle.Tables}"/>
                        </li>
                    </h:panelGroup>
                    <h:panelGroup rendered="#{userRights.admin}">
                        <li>
                            <h:link outcome="#{personsController.prepareList()}" value="#{bundle.Persons}"/>
                        </li>
                        <li>
                            <h:link outcome="#{ordersController.prepareList()}" value="#{bundle.Orders}"/>
                        </li>
                        <li>
                            <h:link outcome="#{reservationsController.prepareList()}" value="#{bundle.Reservations}"/>
                        </li>
                        <li>#{bundle.EditMenu}
                            <ul>
                                <li>
                                    <h:link outcome="#{productTypesController.prepareList()}" value="#{bundle.ProductType}"/>
                                </li>
                                <li>
                                    <h:link outcome="#{productsController.prepareList()}" value="#{bundle.Products}"/>
                                </li>
                             </ul>
                        </li>
                        <li>
                            <h:link outcome="#{tablesController.prepareList()}" value="#{bundle.Tables}"/>
                        </li>
                    </h:panelGroup>
                </ul>
            </div>
            <div id="left_bar_bottom"></div>
        </ui:composition>
    </body>
</html>
